package Thread.Test.Test4;

public class ThreadTest {
    public static void main(String[] args) {
        //100块,分成三个包,现在有五个人去抢
        //5个人是五条线程

        MyThread t1 =new MyThread();
        MyThread t2 =new MyThread();
        MyThread t3 =new MyThread();
        MyThread t4 =new MyThread();
        MyThread t5 =new MyThread(3);

        t1.setName("甄姬");
        t2.setName("蔡文姬");
        t3.setName("小乔");
        t4.setName("大乔");
        t5.setName("貂蝉");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}
